﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"  
    xmlns:customUI="clr-namespace:libSvUIControls;assembly=libSvUIControls"
    >
    <DataTemplate x:Key="DataTemplateLayerSelection">
        <Border Margin="1">
            <StackPanel Orientation="Horizontal" Height="25">
                <Border  HorizontalAlignment="Center"   Background="{Binding Path=inZoomRange, Converter={StaticResource ConvertActiveBrushFromBool}}" >
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" >
                        <CheckBox HorizontalAlignment="Center" Tag="{Binding}" IsChecked="{Binding showLayer, Mode=TwoWay}" Margin="2" VerticalAlignment="Center" />
                        <CheckBox HorizontalAlignment="Center" Tag="{Binding}" IsChecked="{Binding showRegionNames, Mode=TwoWay}" Margin="2" VerticalAlignment="Center" />
                    </StackPanel>
                </Border>
                <StackPanel Width="60" Name="x:stkPnlZoomRange"   Orientation="Horizontal"   Background="{Binding Path=inZoomRange, Converter={StaticResource ConvertActiveBrushFromBool}}">
                    <TextBox  Tag="{Binding}" Text="{Binding minZoomLevel, Mode=TwoWay}"  Width="20" Style="{StaticResource TxtBxStyle}"   Margin="2,0,2,0" />
                    <TextBox  Tag="{Binding}" Text="{Binding maxZoomLevel, Mode=TwoWay}"  Width="20" Style="{StaticResource TxtBxStyle}"   Margin="2,0,2,0" />
                </StackPanel>
                <Border BorderThickness="2" BorderBrush ="{Binding lineStroke, Mode=OneWay }"  Width="110"   Background="{StaticResource MenuItemBackgroundBrush}" CornerRadius="3">
                    <StackPanel Orientation="Horizontal" Background="{Binding Path=getShapesRequestPending, Converter={StaticResource ConvertIndicatorBrushFromBool}}">
                        <dataInput:Label Tag="{Binding}" Content="{Binding layerName}"  Style="{StaticResource lblHeaderStyle}"   />
                    </StackPanel>
                </Border>
            </StackPanel>
        </Border>
    </DataTemplate>

</ResourceDictionary>
